package cn.wen.core.refresh.creator;


import cn.wen.core.refresh.XRecyclerView;

/**
 * 添加默认的头部和底部
 */

public class RefreshHelper {
    /**
     * 添加下拉刷新和加载更多
     */
    public static void addRefreshAndLoadMore(XRecyclerView recyclerView) {
        recyclerView.addRefreshViewCreator(new DefaultRefreshCreator());
        recyclerView.addLoadViewCreator(new DefaultLoadCreator());
    }

    /**
     * 添加下拉刷新
     */
    public static void addRefresh(XRecyclerView recyclerView) {
        recyclerView.addRefreshViewCreator(new DefaultRefreshCreator());
    }

    /**
     * 添加加载更多
     */
    public static void addLoadMore(XRecyclerView recyclerView) {
        recyclerView.addLoadViewCreator(new DefaultLoadCreator());
    }
}
